{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>Bootstrap 101 Template</title>
  <!-- Bootstrap -->
</head>
<body>
<h1>你好，pro01 base页面！</h1>
<button class="btn">走你</button>

<script src="{% static 'jquery.js' %}"></script>
<script>
  $('.btn').click(function () {
      $.ajax({
          url:'http://127.0.0.1:8001/index/',
          type:'get',
          contentType:'application/json',
          data:JSON.stringify({a1:'xxx'}),
          success:function (res) {
              console.log(res);
          }


      })

  })

</script>
</body>
</html>